﻿<div class=head>用户管理</div>
<div class=menu>
<a href="/login/add_user"> 添加用户</a> 
</div>
<div class=area>
<ul>
  <% for user in @all_users %>
    <li><%= link_to "[X]", { # link_to options
                                :controller => 'login',
                                :action => 'delete_user',
                                :id => user},
                                { # html options
                                :method => :post,
                                :confirm => "真的要删除用户 #{user.name} 么？"
                                } %>
		<%= link_to "[E]", { # link_to options
                                :controller => 'login',
                                :action => 'edit_user',
                                :id => user
                                } %>
		<%= link_to "[R]", { # link_to options
                                :controller => 'login',
                                :action => 'edit_user_roles',
                                :id => user
                                } %>
        <%= h(user.name) %> -
        <%= h(user.full_name) %> -
        <%= h(user.desc) %> 
    </li>
  <% end %>
</ul>
</div>